package com.wyzz.hr.pojo.base;

import java.io.Serializable;
import java.util.Set;
import java.util.TreeSet;

import com.wyzz.hr.pojo.Recruitapplier;
import com.wyzz.hr.pojo.Recruitchannel;

public abstract class BaseRecruitchannel implements Serializable {

	public BaseRecruitchannel() {
		hashCode = 0x80000000;
		initialize();
	}

	public BaseRecruitchannel(String id) {
		hashCode = 0x80000000;
		setId(id);
		initialize();
	}

	public BaseRecruitchannel(String id, String recchName,
			String recchRespPerson) {
		hashCode = 0x80000000;
		setId(id);
		setRecchName(recchName);
		setRecchRespPerson(recchRespPerson);
		initialize();
	}

	protected void initialize() {
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
		hashCode = 0x80000000;
	}

	public String getRecchName() {
		return recchName;
	}

	public void setRecchName(String recchName) {
		this.recchName = recchName;
	}

	public String getRecchRespPerson() {
		return recchRespPerson;
	}

	public void setRecchRespPerson(String recchRespPerson) {
		this.recchRespPerson = recchRespPerson;
	}

	public String getRecchPhone() {
		return recchPhone;
	}

	public void setRecchPhone(String recchPhone) {
		this.recchPhone = recchPhone;
	}

	public String getRecchEmail() {
		return recchEmail;
	}

	public void setRecchEmail(String recchEmail) {
		this.recchEmail = recchEmail;
	}

	public String getRecchCityNo() {
		return recchCityNo;
	}

	public void setRecchCityNo(String recchCityNo) {
		this.recchCityNo = recchCityNo;
	}

	public String getRecchAddr() {
		return recchAddr;
	}

	public void setRecchAddr(String recchAddr) {
		this.recchAddr = recchAddr;
	}

	public String getRecchAddrZip() {
		return recchAddrZip;
	}

	public void setRecchAddrZip(String recchAddrZip) {
		this.recchAddrZip = recchAddrZip;
	}

	public String getRecchComments() {
		return recchComments;
	}

	public void setRecchComments(String recchComments) {
		this.recchComments = recchComments;
	}

	public Set getRecruitappliers() {
		return recruitappliers;
	}

	public void setRecruitappliers(Set recruitappliers) {
		this.recruitappliers = recruitappliers;
	}

	public void addTorecruitappliers(Recruitapplier recruitapplier) {
		if (null == getRecruitappliers())
			setRecruitappliers(new TreeSet());
		getRecruitappliers().add(recruitapplier);
	}

	public boolean equals(Object obj) {
		if (null == obj)
			return false;
		if (!(obj instanceof Recruitchannel))
			return false;
		Recruitchannel recruitchannel = (Recruitchannel) obj;
		if (null == getId() || null == recruitchannel.getId())
			return false;
		else
			return getId().equals(recruitchannel.getId());
	}

	public int hashCode() {
		if (0x80000000 == hashCode) {
			if (null == getId())
				return super.hashCode();
			String hashStr = (new StringBuilder()).append(getClass().getName())
					.append(":").append(getId().hashCode()).toString();
			hashCode = hashStr.hashCode();
		}
		return hashCode;
	}

	public String toString() {
		return super.toString();
	}

	public Integer getRecchSortId() {
		return recchSortId;
	}

	public void setRecchSortId(Integer recchSortId) {
		this.recchSortId = recchSortId;
	}

	public static String REF = "Recruitchannel";
	public static String PROP_RECCH_EMAIL = "recchEmail";
	public static String PROP_RECCH_RESP_PERSON = "recchRespPerson";
	public static String PROP_RECCH_ADDR = "recchAddr";
	public static String PROP_RECCH_NAME = "recchName";
	public static String PROP_RECCH_COMMENTS = "recchComments";
	public static String PROP_RECCH_ADDR_ZIP = "recchAddrZip";
	public static String PROP_RECCH_PHONE = "recchPhone";
	public static String PROP_ID = "id";
	public static String PROP_RECCH_CITY_NO = "recchCityNo";
	public static String PROP_RECCH_SORT_ID = "recchSortId";
	private int hashCode;
	private String id;
	private String recchName;
	private String recchRespPerson;
	private String recchPhone;
	private String recchEmail;
	private String recchCityNo;
	private String recchAddr;
	private String recchAddrZip;
	private String recchComments;
	private Integer recchSortId;
	private Set recruitappliers;

}
